home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
Demos
/
Bombardier_PC
/
INDEX.DIR
/
00058_Script_58
< prev
next >
Wrap
Text File
|
1999-03-07
|
2KB
|
100 lines
on openWindow
global gMouseLock, gMouseLatency
put 60 into gMouseLatency
put 1 into gMouseLock
end
on MainRollover
global gCGSelected
put 11 into n
repeat while n < 20
if n = gCGSelected then
put n+10 into CN
set the member of sprite n to member CN
else
if rollover(n) then
put N into CN
set the member of sprite n to member CN
else
put N - 10 into CN
set the member of sprite n to member CN
end if
end if
put n+ 1 into n
end repeat
end
on CursorChange
--newCursor
nothing
end
on KeyUp
if the controlDown then
if the keyCode = 46 then
Tell the stage to LaunchMilestone
end if
if the keyCode = 1 then
Tell the stage to LaunchSmall
end if
end if
PASS
end
on closeWindow
global gCGIndex
set gCGIndex = 0
end
on changeColor var
put the foreColor of line 1 of member "blueColor" into REALBLUE
--put each sublist into a variable
put 1 into n
repeat while n < 10
put "sublist"&n into checkMe
put the text of member checkMe into ListVar
put the lineCount of member checkMe into theLineCount
put 1 into x
repeat while x <= theLineCount
if line x of ListVar = var then
set the foreColor of line x of member checkMe = REALBLUE
end if
put x + 1 into x
end repeat
put n+ 1 into n
end repeat
end
on TurnBlack var
put the foreColor of line 1 of member "NormalColor" into REALBLACK
--put each sublist into a variable
put 1 into n
repeat while n < 10
put "sublist"&n into checkMe
put the text of member checkMe into ListVar
put the lineCount of member checkMe into theLineCount
put 1 into x
repeat while x <= theLineCount
if line x of ListVar = var then
set the foreColor of line x of member checkMe = REALBLACK
end if
put x + 1 into x
end repeat
put n+ 1 into n
end repeat
end
--check each line of the variable for VAR
--if that line contains the variable, then change it to blue
--put the variable back into the 2 sublist text members.